projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb84b98
)
x86/pvh: disable MTRR feature on cpuid for Dom0
author
Roger Pau Monné
<roger.pau@citrix.com>
Mon, 16 Dec 2013 09:52:43 +0000
(10:52 +0100)
committer
Jan Beulich
<jbeulich@suse.com>
Mon, 16 Dec 2013 09:52:43 +0000
(10:52 +0100)
MTRR is not available for PVH Dom0, so prevent cpuid from
reporting it as an available feature.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/traps.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/traps.c
b/xen/arch/x86/traps.c
index 940bc335f8e572185b87d7e0363fe524cce10970..3f7a3c79e8a18c2a63f7906bb00c6c3fd23ec710 100644
(file)
--- a/
xen/arch/x86/traps.c
+++ b/
xen/arch/x86/traps.c
@@
-796,6
+796,8
@@
void pv_cpuid(struct cpu_user_regs *regs)
__clear_bit(X86_FEATURE_DS, &d);
__clear_bit(X86_FEATURE_ACC, &d);
__clear_bit(X86_FEATURE_PBE, &d);
+ if ( is_pvh_vcpu(current) )
+ __clear_bit(X86_FEATURE_MTRR, &d);
__clear_bit(X86_FEATURE_DTES64 % 32, &c);
__clear_bit(X86_FEATURE_MWAIT % 32, &c);